<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:a="https://ajax4jsf.dev.java.net/ajax"
                xmlns:rich="http://richfaces.org/rich"
				template="template.xhtml">

<!-- content -->
<ui:define name="content">

<div class="section">
	<h:form id="addProjectForm">
	    Please enter the details of the assignment:
	    <br/><br/>
	    <table border="1">
	    	<tr>
	    		<td>Name:</td>
	    		<td>
	    			<h:inputText required="true" value="#{project.name}" />
	    		</td>
	    	</tr>
	    	<tr>
	    		<td valign="top">Description:</td>
	    		<td>
	    			<h:inputTextarea cols="45" required="true" value="#{project.description}" />
	    		</td>
	    	</tr>
	    	<tr>
	    		<td colspan="2">&#160;</td>
	    	</tr>
	    	<tr>
	    		<td valign="top">Users:</td>
	    		<td>
	    			<rich:pickList value="#{editProject.userIds}"> 
            			<f:converter converterId="javax.faces.Long" />
	    				<s:selectItems value="#{users}" var="user" label="#{user.username}" itemValue="#{user.id}" />
        			</rich:pickList>
	    		</td>
	    	</tr>
	    	<tr>
	    		<td>&#160;</td>
	    		<td><h:commandButton value="Submit" action="#{editProject.saveProject}" /></td>
	    	</tr>
	    </table>
	</h:form>
</div>

</ui:define>

</ui:composition>
